package com.rc.evcharger.common.constant;

import java.io.File;

/**
 * 常用消息
 */
public class CommonConstant {

    // 常量
    public static final String CONSTANT_STRING_GET = "get";
    public static final String CONSTANT_STRING_SET = "set";
    public static final String CONSTANT_STRING_STATUS = "status";
    public static final String CONSTANT_STRING_MESSAGE = "message";
    public static final String CONSTANT_STRING_RESULT = "result";
    public static final String CONSTANT_STRING_INT = "int";
    public static final String CONSTANT_STRING_VARCHAR = "varchar";
    public static final String CONSTANT_STRING_DATETIME = "datetime";
    public static final String CONSTANT_STRING_FLOAT = "float";
    public static final String CONSTANT_STRING_DOUBLE = "double";
    public static final String CONSTANT_STRING_LONGTEXT = "longtext";

    public static final String SUCCESS = "success";
    // 文件
    public static final String CONSTANT_STRING_FILE = "file";
    public static final String CONSTANT_STRING_FILENAME = "fileName";
    public final static String SYMBOL_SLASH = File.separator;

    // 编码
    public static final String ENCORD_UTF8 = "utf-8";
    public static final String ENCORD_ISO_8859_1 = "iso-8859-1";

    public static final String START_SIGN = "68";//帧起始符

    // 公用返回码
    public static final String SUCCESS_CODE_200 = "200";
    public static final String FAIL_CODE_400 = "400";

    //    用户余额不足，请充值后再充电
    public static final String FAIL_CODE_501 = "501";
    //    上次订单还没结算完，请稍等
    public static final String FAIL_CODE_502 = "502";

    // 通用STATUS状态
    public static final String STATUS_ZERO = "0";
    public static final String STATUS_ONE = "1";
    public static final String STATUS_TWO = "2";

    // 通用提示信息
    public static final String MSG_SUCCESS = "操作成功";
    public static final String MSG_FAIL = "操作失败";
    public static final String MSG_EXCEPTION = "操作异常";
    public static final String MSG_EXCEPTION_POPUP = "系统错误，请稍后再试";
    public static final String MSG_NO_LOGIN = "请先登录";
    public static final String MSG_PARAMETER_EMPTY = "参数为空";

    //0服务费打折 1 特定服务费（活动价） 2总价打折 默认0
    public static final String POLICY_DISCOUNT_TYPE_SERVICE = "0";
    public static final String POLICY_DISCOUNT_TYPE_ACTIVITY = "1";
    public static final String POLICY_DISCOUNT_TYPE_TATAL = "2";

    public static final String CHARGED_PROCESS_LOG = "charged_process_log";
}
